package com.xrh.xdemo.api.request.updateRequest;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.xrh.xdemo.api.dto.extend.UserExtraInfoDTO;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
import java.util.Set;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class SysUserUpdateRequest{

   /**主键id */
	@ApiModelProperty("主键id")
	@NotNull(message = "主键id不能为空")
	private Long id;

	/**用户姓名 */
	@ApiModelProperty("用户姓名")
	@NotBlank(message = "用户姓名不能为空")
	private String userName;

	/**邮箱 */
	@ApiModelProperty("邮箱")
	private String email;

	/**手机号 */
	@ApiModelProperty("手机号")
	private String phoneNumber;

	/**性别 */
	@ApiModelProperty("性别")
	@NotBlank(message = "性别不能为空")
	private String gender;

	/**生日 */
	@ApiModelProperty("生日")
	private Date birthday;
	
	/**启用状态 */
	@ApiModelProperty("启用状态(0:禁用,1:启用)")
	private Date enable;

	/**用户扩展信息 */
	@ApiModelProperty("用户扩展信息")
	private UserExtraInfoDTO extraInfo;
	
	@ApiModelProperty("选择角色ids")
	private Set<Long> roleIds;

}
